package com.zhike.common.dto;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class LoginDTO {

    // @ApiModelProperty(value = "设备编号", required = false, notes = "系统生成")
    // private String deviceNumber;

    @ApiModelProperty(value = "真实设备编号", required = false)
    private String realDeviceNumber;

    @ApiModelProperty(value = "设备平台标识", required = true, example = "ANDROID/IOS/HARMONYOS/PC/WEB/OTH")
    @NotNull(message = "缺少deviceType参数")
    private String deviceType;

    @ApiModelProperty(value = "登录方式（1、账号密码登录 2、 手机号验证码登录）", required = true, example = "2")
    @NotNull(message = "缺少loginType参数")
    private String loginType;

    @ApiModelProperty(value = "登录账号", required = true)
    @NotNull(message = "缺少loginAccount参数")
    private String loginAccount;

    @ApiModelProperty(value = "登录密码或短信验证码", required = true)
    @NotNull(message = "缺少loginPassword参数")
    private String loginPassword;

    @ApiModelProperty(value = "客户端版本号", required = false)
    private String clientVersion;

}
